package cn.utry.sipGateWay;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import cn.utry.sipGateWay.tcpdump.WireShark;

@SpringBootApplication
public class SipGateWayApplication  implements ApplicationRunner {
	private static final Logger log = LoggerFactory.getLogger(SipGateWayApplication.class);
	public static void main(String[] args) {
		SpringApplication.run(SipGateWayApplication.class, args);
	}

	public void run(ApplicationArguments args) throws Exception {
		// TODO Auto-generated method stub
		log.info("程序启动了。。。。。。。。。。。。");
		int networkInterfaceIndex=3;
		WireShark.start(networkInterfaceIndex);
	}

}
